def fn1():
    num1 = 123

    def fn2():
        print(num1)

    return fn2


fn2 = fn1()

fn2()
